package com.shareware.common.toast

import android.content.Context
import android.widget.Toast

/**
 * desc: 功能描述
 * email: mobiledeveloper@qq.com
 */
interface ToastFactory {

    companion object : ToastFactory {
        override fun onCreate(context: Context, message: CharSequence, duration: Int): Toast {
            return Toast.makeText(context, message, duration)
        }

    }

    /**
     * 创建吐司
     * @param context context
     * @param message 吐司内容
     * @param duration 显示时间
     */
    fun onCreate(context: Context, message: CharSequence, duration: Int): Toast
}